#include "../AddRepositoryDialog.h"
#include "ui_AddRepositoryDialog.h"

// Constructor and destructor.

AddRepositoryDialog::AddRepositoryDialog(
	QWidget *parent, Qt::WindowFlags flags)
	: QDialog(parent, flags)
{
	createUi();
}

AddRepositoryDialog::~AddRepositoryDialog()
{
	//
}

// Methods.

QString AddRepositoryDialog::getRepositoryName() const
{
	return ui->repositoryPropertiesWidget->getRepositoryName();
}

// Helpers.

void AddRepositoryDialog::createUi()
{
	ui = new Ui::AddRepositoryDialog();
	ui->setupUi(this);
}
